package com.lry.basic.insterest;

import javax.print.PrintService;
import java.awt.print.PrinterJob;

public class Printer {

    public static void main(String[] args) {

        PrintService[] printServices = PrinterJob.lookupPrintServices();
        for (PrintService printService : printServices) {
            System.out.println(printService.getName());
        }
    }
}
